<script>
export default {
  data() {
    return {
      counter: 0
    }
  },
  render() {
    const increase = () => this.counter++
    const decrease = () => this.counter--

    return (
      <div>
        <h2>JSX 的计数器: {this.counter}</h2>
        <button onClick={increase}>+1</button>
        <button onClick={decrease}>-1</button>
      </div>
    )
  }
}
</script>
